package com.mh.study.dubbo.component;

import com.mh.study.dubbo.service.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

/**
 * @author MH
 * @since 2022-01-11
 */
@Component
public class HelloComponent {

    @Reference(async = true)
    private HelloService helloService;

    public String sayHello(String name, int timeToWait){
        return helloService.sayHello(name, timeToWait);
    }

}